import { useI18n } from 'vue-i18n';

export const TYPE_LINK = 1;
export const TYPE_TAG = 2;
export const TYPE_COLUMN = 3;
export const TYPE_PARENT = 4;

export function useTypeList() {
  const { t } = useI18n();

  return {
    [TYPE_LINK]: t('settings.view.toolbar.index.type1'),
    [TYPE_TAG]: t('settings.view.toolbar.index.type2'),
    [TYPE_COLUMN]: t('settings.view.toolbar.index.type3'),
    [TYPE_PARENT]: t('settings.view.toolbar.index.type4'),
  } as Record<number, string>;
}
